home *** CD-ROM | disk | FTP | other *** search
- on findNextScript
- global gDest, gNextCast, gPanelChannel, gStarChannel, gForceClick
- set nextStar to char 6 of gNextCast
- if the number of cast gNextCast = -1 then
- if gDest = 9 then
- exit
- else
- set gDest to gDest + 1
- set gNextCast to gDest & "star1"
- set nextDestScript to line gDest of field "panelHandlers"
- if the number of cast gNextCast = -1 then
- set gForceClick to integer(gDest + gPanelChannel - 1)
- updateDest(gDest)
- laserOn(gForceClick)
- else
- updateDest(gDest)
- laserOn(gForceClick)
- set nextStarScript to the scriptText of cast gNextCast
- set whatNow to line 2 of nextStarScript
- set gForceClick to gStarChannel
- do(whatNow)
- end if
- end if
- else
- set nextStarScript to the scriptText of cast gNextCast
- set whatNow to line 2 of nextStarScript
- set gForceClick to integer(nextStar + gStarChannel - 1)
- do(whatNow)
- end if
- setUpFlash(0)
- end
-